{% if languages|length > 1 %}
<ul class="language-selector nav navbar-nav">
  <li class="dropdown">
    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
      <i class="icon-web"></i>{% for language in languages %}{% if language.code == code %}{{ language.name }}{% endif %}{% endfor %} <span class="caret"></span>
    </a>
    <ul class="dropdown-menu">
      {% for language in languages %}
      <li><a href="#" data-code="{{ language.code }}">{{ language.name }}</a></li>
      {% endfor %}
    </ul>
  </li>
</ul>
<form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">
  <input type="hidden" name="code" value="" />
  <input type="hidden" name="redirect" value="{{ redirect }}" />
</form>
{% endif %}
